﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.crew {
    import Classes.util.*;
    import __AS3__.vec.*;

    public class Crew {

        private var m_crewList:Vector.<String>;

        public function Crew(){
            this.m_crewList = new Vector.<String>();
        }
        public function get list():Vector.<String>{
            return (this.m_crewList);
        }
        public function get count():Number{
            return ((this.m_crewList) ? this.m_crewList.length : 0);
        }
        public function cleanUp():void{
            var _local1:Object;
            if (this.m_crewList){
                for (_local1 in this.m_crewList) {
                    delete this.m_crewList[_local1];
                };
            };
            this.m_crewList = null;
        }
        public function loadObject(_arg1:Object):void{
            var _local2:String;
            var _local3:String;
            for each (_local2 in _arg1) {
                _local3 = GameUtil.formatServerUid(_local2);
                this.add(_local3);
            };
        }
        public function add(_arg1:String):void{
            this.m_crewList.push(_arg1);
        }
        public function remove(_arg1:String):void{
            var _local2:int = this.m_crewList.indexOf(_arg1);
            if (_local2 >= 0){
                this.m_crewList.splice(_local2, 1);
            };
        }

    }
}//package Modules.crew 
